package safrain.nodelet.script;

public class CommonAPI implements IScriptAPI {
	private ScriptService scriptService;

	@Override
	public String getName() {
		return "common";
	}

	@Override
	public void init(ScriptService scriptService) {
		this.scriptService = scriptService;
	}

	public void out(String string) {
		System.out.println(string);
	}

	public Object runScript(String path) {
		return scriptService.runScript(path);
	}

}
